/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package JFreeChartExtensions.JChartMenu.ChartMenuListeners;

import JFreeChartExtensions.ChartPanelDialogs.InsetSettings;
import JFreeChartExtensions.chartextensions.inset.ChartInsetManager;
import JFreeChartExtensions.ExtendableChartPanel;
import java.awt.event.ActionEvent;

/**
 *
 * @author Nobody
 */
public class InsetSettingsListener extends AbstractChartMenuListener {

    private ChartInsetManager chartInsetManager;
    public InsetSettingsListener(ChartInsetManager chartInsetManager, ExtendableChartPanel chart) {
        super(chart);
        this.chartInsetManager = chartInsetManager;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                new InsetSettings(chart, chartInsetManager).setVisible(true);
            }
        });
    }
}
